Crate salvo_core[][src]

Expand description

The core lib of Savlo web server framework.

Re-exports

pub use anyhow;
pub use hyper;
pub use self::catcher::Catcher;
pub use self::catcher::CatcherImpl;
pub use self::http::Request;
pub use self::http::Response;
pub use self::writer::Writer;

Modules

catcher module

fs module

http module

A list of things that automatically imports into application use salvo.

routing module

writer module

Structs

Depot if for store temp data of current request. Each handler can read or write data to it.

Errors that can happen inside salvo.

Router struct is used for route request to different handlers.

Server type

Service http request.

Server with tls supported.

Traits

Handler trait for handle http request.

Functions

If you don’t want to include tokio in your project directly, you can use this function to start server.

If you don’t want to include tokio in your project directly, you can use this function to start server.

Type Definitions

Result type wich has salvo::Error as it’s error type.

Attribute Macros

fn_handler is a pro macro to help create Handler from function easily.